package com.dbz.service.Impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dbz.dao.DemandDao;
import com.dbz.entity.Demand;
import com.dbz.service.DemandService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DemandServiceImpl implements DemandService {
    @Resource
    private DemandDao demandDao;

    @Override
    public IPage<Demand> selectPage(IPage<Demand> page, Wrapper<Demand> queryMapper) {
        return demandDao.selectPage(page,queryMapper);
    }

    @Override
    public int insertDemand(Demand demand) {
        return demandDao.insert(demand);
    }


    @Override
    public List<Demand> selectDemandList() {
        return demandDao.selectDemandList();
    }

    @Override
    public int updateDemandiskaidanByid(String deid) {
        return demandDao.updateDemandiskaidanByid(deid);
    }
}
